﻿using System.Windows;
using System.Windows.Controls;
using Apps.Yunwei.YunWeiService;

namespace Apps.Yunwei.Views
{
    public partial class UserDetail : ChildWindow
    {
        public UserObject Contact
		{
            get { return (UserObject)this.DataContext; }
		}

        public UserDetail()
        {
            InitializeComponent();
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            //if (this.Contact.Validate())
            //{
            this.DialogResult = true;
            //}
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}

